package com.anmong.cloud.mq.constant;

import lombok.extern.java.Log;

public class MqEnum {

    //为了了消费端能使用订阅常量(例:topic = MqEnum.TOPIC_LOG,)
    //日志主题
    public final static String TOPIC_LOG = "Log";
    //其他主题

    public enum Topic {
        日志(TOPIC_LOG),
        ;

        public String code;

        Topic(String code) {
            this.code = code;
        }


    }


    //为了了消费端能使用订阅常量(例:selectorExpression = MqEnum.TAG_API_ACCESS_LOG,,)
    //访问日志
    public final static String TAG_API_ACCESS_LOG = "ApiAccessLog";
    //后台操作日志
    public final static String TAG_SYS_OPERATE_LOG = "SysOperateLog";
    public enum Tag {
        访问日志(TAG_API_ACCESS_LOG),
        后台操作日志(TAG_SYS_OPERATE_LOG)
        ;

        public String code;

        Tag(String code) {
            this.code = code;
        }

    }

    //为了了消费端能使用订阅常量(例:consumerGroup = MqEnum.GROUP_API_ACCESS_LOG,)
    //访问日志
    public final static String GROUP_API_ACCESS_LOG = "GroupApiAccessLog";
    //后台操作日志
    public final static String GROUP_SYS_OPERATE_LOG = "GroupSysOperateLog";
    public enum Group {
        访问日志(GROUP_API_ACCESS_LOG),
        后台操作日志(GROUP_SYS_OPERATE_LOG)
        ;

        public String code;

        Group(String code) {
            this.code = code;
        }

    }
}
